var should = require('should');
var equipHandler = require('../../../../app/servers/bag/handler/equipHandler');
var config = require('../../../config');
var configUtil = require('../../../../app/util/configUtil');
var analyze = require('kc-analyze');

suite('初始化', function () {
    test('analyze', function (done) {
        var analyze_config = configUtil.load('analyze');
        var game_config = configUtil.load('game');
        analyze.initialize({
            host: analyze_config.host,
            server_id: game_config.server_id
        });
        done();
    });
});

suite('测试refine', function () {
    suite('refine', function () {
        test('装备精炼', function (done) {
            var msg = {};
            msg.equip_id = 10001;
            var session = {};
            session.uid = config.role_id;

            var equip_handler = new equipHandler();
            equip_handler.refine(msg, session, function (err, res) {
                done();
            });
        });
    });
});
